'''
@auther tianxiaoxi  
@file utils by
@time 2021/12/22 20:13
'''


def common_assert(common, response, status_code=200, success=True, code=10000, message="成功"):
    common.assertEqual(status_code, response.status_code)
    common.assertEqual(success, response.json().get("success"))
    common.assertEqual(code, response.json().get("code"))
    common.assertIn(message, response.json().get("message"))
